package hxg.thread;

/**
 * @author HeXiangGuang
 * @create 2021-06-22 23:08
 */
public class Test {
    public static void main(String[] args) {
        Thread thread = new Thread();

        ThreadTest threadTest =  new ThreadTest(){
            @Override
            public void run() {

            }
        };

        Runnable runnable = new Runnable() {
            @Override
            public void run() {
                System.out.println("这是用匿名内部类的方式创建的线程");
            }
        };
//        Thread thread1 = new Thread(runnable);
//        thread1.start();
        ThreadClass threadClass = new ThreadClass();
    }
}
